﻿using System;
using GeoAPI.Geometries;

namespace NetTopologySuite.Geometries
{
	public class GeometryComponentFilter : IGeometryComponentFilter
	{
		public GeometryComponentFilter(FilterMethod filterMethod)
		{
			this._do = filterMethod;
		}

		public void Filter(IGeometry geom)
		{
			this._do(geom);
		}

		private readonly FilterMethod _do;
	}
}
